import { createStore, combineReducers, applyMiddleware } from 'redux'
import count from './reducers/count'
import num from './reducers/num'
import list from './reducers/list'
import createSagaMiddleware from 'redux-saga'
import rootSaga from './sagas'

const sagaMiddleware = createSagaMiddleware()

let reducer = combineReducers({
    count,
    num,
    list
})

let store = createStore(reducer, applyMiddleware(sagaMiddleware))

sagaMiddleware.run(rootSaga)

export default store




